#include "Sa2dDom.h"

	vertex::vertex(){

	}

    string vertex::getName()
    {
        return name;
    }

    double vertex::getX()
    {
        return x;
    }

    double vertex::getY()
    {
        return y;
    }

    void vertex::setName(string name)
    {
        this->name = name;
    }

    void vertex::setX(double x)
    {
        this->x = x;
    }

    void vertex::setY(double y)
    {
        this->y = y;
    }
    string vertex::toString(int indent){
    	string tabs = this->getIndent(indent);
    		stringstream returnString;
    		returnString << tabs << "vertex:\n";
    		returnString << tabs << "name: " << name << "\n";
    		returnString << tabs << "x coord: " << x << "\n";
    		returnString << tabs << "y coord: " << y << "\n";
    		return returnString.str();

    }
